#/bin/sh
# Dynagen QA script

TIMESTAMP=`date +%m%d%y%H%M%S`
LOG_SUCCEED='dynagen-QA-succeed-'$TIMESTAMP'.log'
LOG_ERROR='dynagen-QA-error-'$TIMESTAMP'.log'
COMMAND='python ./dynagen'

# All these labs should succeed
find QA/succeed -name "*.net" -exec $COMMAND -q -n '{}' \; | tee -a QA/logs/$LOG_SUCCEED

# And these labs should error gracefully
find QA/error -name "*.net" -exec $COMMAND -q -n '{}' \; | tee -a QA/logs/$LOG_ERROR
